package com.caiyigo.baihua.utils;

import java.io.PrintWriter;
import java.io.StringWriter;

public class ExceptionUtils {
	public static String getExceptionString(Exception ex) {
		StringWriter stringWriter = new StringWriter();
		PrintWriter writer = new PrintWriter(stringWriter);
		ex.printStackTrace(writer);
		return stringWriter.toString();
	}
}
